Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@babel/plugin-syntax-object-rest-spread
Advanced tools
The @babel/plugin-syntax-object-rest-spread package allows Babel to parse and handle the object rest/spread syntax. This syntax enables the extraction of properties from objects and the creation of new objects with certain properties of an existing object. It is important to note that this plugin only enables the syntax and does not transform it; the actual transformation is handled by another plugin like @babel/plugin-proposal-object-rest-spread.
Object Rest Properties
Allows extracting the remaining own enumerable property keys that are not already picked off by the destructuring pattern.
{ ...rest } = object
Object Spread Properties
Enables the creation of a new object by copying own enumerable properties from a provided object onto the new object.
{ ...object }
This package not only allows Babel to parse the object rest/spread syntax but also transforms it. It is the complement to @babel/plugin-syntax-object-rest-spread, which only enables the syntax.
This is a legacy plugin that was used before the proposal reached stage 4 and was included in the official ECMAScript standard. It both enabled the syntax and transformed it, similar to @babel/plugin-proposal-object-rest-spread.
Allow parsing of object rest/spread
See our website @babel/plugin-syntax-object-rest-spread for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-object-rest-spread
or using yarn:
yarn add @babel/plugin-syntax-object-rest-spread --dev
FAQs
Allow parsing of object rest/spread
The npm package @babel/plugin-syntax-object-rest-spread receives a total of 13,303,561 weekly downloads. As such, @babel/plugin-syntax-object-rest-spread popularity was classified as popular.
We found that @babel/plugin-syntax-object-rest-spread demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.